class While {
    public static void main(String[] args) {
        new While().christmasTree(20);
    }

    void christmasTree(int height){
        height = height / 2 * 2;
        int w = height + 1;
        int s;
        int s2;
        while(height > 0){
            s = height / 2;
            
            new While().space(s);
            
            s2 = 0;
            while (s2 < w - height){
                System.out.print(1);
                s2 = s2 + 1;
            }

            this.space(s - 1);

            System.out.println(0);
            height = height - 2;
        }
        
        space(w - 1);
        System.out.println(0);
    }

    void space(int count){
        int num = 0;
        while (num < count){
            System.out.print(0);
            num = num + 1;
        }
    }
    
}